package com.tedu.openmedical.base.response;

import lombok.Getter;

@Getter
public enum CheckStatusEnum {
    SUBMITTED(0,"已提交"),
    CHECKING(1,"待审核"),
    PASSED(2,"待支付"),
    REJECTED(3,"审核驳回"),
    WAIT_COPY(4,"待复印"),
    COPYING(5,"复印中"),
    WAIT_SEND(6,"待寄件"),
    SENDING(7,"待签收"),
    COMPLETED(8,"已完成"),
    CANCELED_PAY(9,"取消支付"),
    CANCELED_COPY(10,"取消复印且退款");

    private Integer code;
    private String msg;

    CheckStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static CheckStatusEnum getEnum(Integer code){
        for(CheckStatusEnum e:values()){
            if(e.getCode()==code) return e;
        }
        return null;
    }
}
